home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr37 / wsomr100.zip / WPOST < prev    next >
Text File  |  1995-03-15  |  403b  |  27 lines

  1.  
  2. #!/bin/sh
  3. #Syntax:
  4. # wpost in_file out_file
  5. #   ex: sh wpost internet.001 internet.txt
  6.  
  7. wsmail m+ $1
  8.  
  9. # Check for an existing packet
  10. if [ -f $1 ]
  11. then
  12.   echo new mail found!
  13.   sz -w 1024 $1
  14.   rm $1
  15. fi
  16.  
  17. # Check for an existing replies
  18. if [ -f $2 ]
  19. then
  20.   echo sending replies, please wait...
  21.   wsmail r- $2
  22. fi
  23.  
  24. # Telix script can check this message for the end of Unix script operation
  25. echo wpost done
  26.  
  27.